package ch2oopexer1;

import java.util.Scanner;

public class PETest {
    public static void main(String[] args) {
        PE pe = new PE();
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入7位裁判所给的分数：");
        Score[] scores = pe.scoreArr;
        double score=0;
        for(int i=0;i<scores.length;i++) {
            while (true) {
                score = scan.nextDouble();
                //scores[i]=score;
                pe.method(score);
                if (score < 0 || score > 10) {
                    System.out.println("输入范围有误重新输入");
                }
            }
        }
        System.out.println(pe.method(score));



    }


}
